#include "StdAfx.h"
#include "ZLocalBackupWidget.h"
#include "ZTongjiWidget.h"
#include "ZPackageMgrWidget.h"
#include "ZYunshuWidget.h"
#include "ZGuanliWidget_DaoShouDan.h"
#include "..\ZWuliuSvr\DBOpt\ZWuliuDefine.h"

ZLocalBackupWidget::ZLocalBackupWidget(QWidget *parent)
	: QDialog(parent)
{
	ui.setupUi(this);
	
	connect(ui.pushButton_package, SIGNAL(clicked(bool)), this,  SLOT(_onPackage(bool)));
	connect(ui.pushButton_paiche, SIGNAL(clicked(bool)), this,  SLOT(_onPaiche(bool)));
	connect(ui.pushButton_daoshoudaoche, SIGNAL(clicked(bool)), this,  SLOT(_onLianmeng(bool)));
	connect(ui.pushButton_caiwu, SIGNAL(clicked(bool)), this,  SLOT(_onCaiwu(bool)));
}

ZLocalBackupWidget::~ZLocalBackupWidget()
{

}

void ZLocalBackupWidget::_onPackage( bool checked )
{
	ZPackageMgrWidget packageMgr(true, this);
	packageMgr.exec();
// 	ZLocalPackageWidget localPackageWidget;
// 	localPackageWidget.exec();
}

void ZLocalBackupWidget::_onPaiche( bool checked )
{
	ZYunshuWidget yunshuDlg(ZDialog, true, this);
	yunshuDlg.exec();
}

void ZLocalBackupWidget::_onLianmeng( bool checked )
{
	ZGuanliWidget_DaoShouDan daoshoudan(true, Wuliu_MSG_REQUEST_Daoshou, this);
	daoshoudan.exec();
}

void ZLocalBackupWidget::_onCaiwu( bool checked )
{
	ZTongjiWidget ztongji(true, this);
	ztongji.exec();
}
